from django.template import loader, Context
from django.shortcuts import render
from django.http import HttpResponse
from fe.models import SysUser

# Create your views here.

def index(req):
    return HttpResponse('hello')

def admin(req):
    users = SysUser.objects.all()
    t = loader.get_template("useradmin.html")
    c = Context({'users':users})
    return HttpResponse(t.render(c))
    #return HttpResponse('welcome to fe admin')


